fun main() {
    println(Season.SPRING)
    println(Season.SPRING.name)
    println(Season.SPRING.desc)
    println(Season.SPRING.ordinal)
    /**
     * 输出结果:
     * SPRING
     * SPRING
     * 春天
     * 0
     */
}

enum class Season(val desc: String) {
    SPRING("春天"), SUMMER("夏天"), AUTUMN("秋天"), WINTER("冬天")
}